<link rel="stylesheet" href="/static/index/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/index/css/index.css">


<div class="container">
    <div class="row">
        <div class="col-md-8">
            {foreach name="tie" item="tie"}
            <div class="card shadow mb-2 border-0" style="font-size: 14px;">
                <div class="card-body">
                    <img style="width:70px; height:70px;overflow:hidden;" src="{$tie.user.avatar}" height="50" class="rounded-circle float-left mr-3" data-toggle="popover"
                         data-placement="right">
                    <p style="font-size: 20px;">
                        <span class="text-info"><i
                                class="fa fa-thumbs-o-up text-danger"></i>&nbsp;[&nbsp;<a
                                class="text-info text-decoration-none"
                                href="{:url('index/index/index', array('category_id' => $tie.category_id))}">{$tie.category.name}</a>&nbsp;]</span>&nbsp;<span class="text-info">[&nbsp;{if condition="$tie.type eq 0" }原创{else /}转载{/if}&nbsp;]</span>&nbsp;<a href="{:url('index/tie/detail', array('id' => $tie.id))}" class="text-secondary text-decoration-none">{$tie.title}</a>
                    </p>
                    <small class="text-black-50">
                        <i class="fa fa-user"></i>&nbsp;{$tie.user.nickname}&nbsp;发表于&nbsp;{$tie.createtime|date="Y-m-d H:i", ###}&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-eye"></i> {$tie.hits}<span class="d-none d-md-inline">
                        </span>
                        <div class="float-right text-black-50">
                            &nbsp;点赞数: {$tie.likenum}人
                        </div>
                    </small>
                    <div class="d-none">
                        <div class="text-muted px-4 text-nowrap">
                            <img src="{$tie.user.avatar}" height="50" class="rounded-circle float-left mr-3">
                            <h6>{$tie.user.nickname}</h6>
                            <h6>最后在线：{$tie.user.prevtime}</h6>
                            <h6>加入时间：{$tie.user.createtime}</h6>
                            <h6>主题：{$tie.tie_num}&nbsp;&nbsp;评论：</h6>
                        </div>
                    </div>
                </div>
            </div>
            {/foreach}

            <nav>
                <ul class="pagination justify-content-center my-4">
                </ul>
            </nav>
        </div>


        <div class="col-md-3 pt-4">
            <div class="btn-group">
                <button type="button" class="btn btn-default dropdown-toggle btn-lg" data-toggle="dropdown">选择分类
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" role="menu">
                    <li>
                        <a href="{:url('index/index/index')}">全部</a>
                    </li>
                    <li class="divider"></li>
                    {volist name="category" id="category"}
                    <li>
                        <a href="{:url('index/index/index', array('category_id' => $category.id))}">{$category.name}</a>
                    </li>
                    {/volist}
                </ul>
            </div>
        </div>
    </div>
</div>